﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="DefaultCheck.aspx.cs" Inherits="CheckOverTime_DefaultCheck" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <asp:Label ID="Label1" runat="server" Text="对不起，该页面为经理专用，请访问其他页面！" Visible="False"
            Width="335px"></asp:Label><br />
        <asp:Panel ID="Panel1" runat="server" Height="21px" Visible="False" Width="332px">
            加班事由：<asp:Label ID="lblReason" runat="server" Text="Label" Width="250px"></asp:Label></asp:Panel>
        <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="否决理由不能为空" Visible="False"
            Width="133px"></asp:Label><br />
        <asp:Panel ID="Panel2" runat="server" Height="23px" Visible="False" Width="409px">
            否决理由：<asp:TextBox ID="txtDenyReason" runat="server" Width="184px"></asp:TextBox>
            <asp:Button ID="btnOK" runat="server" Text="确定" OnClick="btnOK_Click" />
            <asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" />
            </asp:Panel>
        &nbsp;</div>
        <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
            GridLines="Vertical" OnRowCommand="grdResult_RowCommand" OnSelectedIndexChanged="grdResult_SelectedIndexChanged">
            <FooterStyle BackColor="#CCCC99" />
            <Columns>
                <asp:BoundField HeaderText="员工姓名" DataField="EmployeeName" />
                <asp:BoundField HeaderText="开始时间" DataField="StartTime" />
                <asp:BoundField HeaderText="结束时间" DataField="EndTime" />
                <asp:BoundField HeaderText="提交时间" DataField="SubmitTime" />
                <asp:BoundField HeaderText="类型" DataField="TypeName" />
                <asp:BoundField HeaderText="小时数" DataField="Hours" />
                <asp:ButtonField Text="详细情况..." CommandName="Select" />
                <asp:ButtonField ButtonType="Button" Text="批准" CommandName="Agree" />
                <asp:ButtonField ButtonType="Button" Text="否决" CommandName="Deny" />
            </Columns>
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
</asp:Content>